<!--
 * @Author: xuwejie 1529315455@qq.com
 * @Date: 2023-09-26 15:05:41
 * @LastEditors: xuwejie 1529315455@qq.com
 * @LastEditTime: 2023-09-26 15:06:10
 * @FilePath: \copartner_mobile\pages\source\components\index.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script type="text/javascript" src="http://static.yfpyx.com/bigdata_app/js/ezuikit.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<body>
  <video 
    id="myPlayer"
    autoplay
    src=""
    controls
    playsInline 
    webkit-playsinline
  >
  </video>
  <script>
	window.onload=()=>{
		// 截取url中传递过来的监控链接
		setTimeout(() => {
			$('#myPlayer').attr("src", 'ezopen://QGBEQV@open.ys7.com/BA7717817/1.live');
			// 日志
			var player = new EZUIKit.EZUIPlayer('myPlayer');
			// 测试时打印log
			// player.on('log', log);
		}, 500)
		
		function log(str) {
			console.log(str)
			var div = document.createElement('DIV');
			
			div.innerHTML = (new Date()).Format('yyyy-MM-dd hh:mm:ss.S') + JSON.stringify(str);
			document.body.appendChild(div);
		}
	}

  </script>
</body>
